package ruanjiangongcheng;
import static org.junit.Assert.*;

import java.util.LinkedList;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import ruanjiangongcheng.homework2s;

public class homework2
{
	@Before
	public void setUp() throws Exception 
	{
	}

	@After
	public void tearDown() throws Exception 
	{
	}

	@Test
	public void test() 
	{
		String test="other,the,word";
		LinkedList<String> start=homework2s.splitstr(test, ',');
		LinkedList<String> end=new LinkedList<>();
		end.add("other");
		end.add("the");
		end.add("word");
		assertEquals(end, start);
	}
	
	@Test
	public void test2() 
	{
		System.out.println("test successful!");
	}
	

}
